package com.springboot.middleware.middleware_grab_red_envelopes.server.dto;

import com.sun.istack.internal.NotNull;

public class RedPacketDto {
    private Integer userId;
    @NotNull
    private Integer total; //红包个数
    @NotNull
    private Integer amount;//总金额,单位:分

    public RedPacketDto() {
    }

    public RedPacketDto(Integer userId, Integer total, Integer amount) {
        this.userId = userId;
        this.total = total;
        this.amount = amount;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "RedPacketDto{" +
                "userId=" + userId +
                ", total=" + total +
                ", amount=" + amount +
                '}';
    }
}
